package com.example.kami.test;


import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.LinkedHashMap;


/**
 * @author liuhang
 * @description 保护生态 (v1:不需要卡密，v2:需要卡密)
 * @date 2022/02/09
 */
@RestController
@RequestMapping("/bhst")
public class BhstController {
    Logger log = LoggerFactory.getLogger(BhstController.class);

    @RequestMapping(value = "/v1/login")
    public String login() {
        LinkedHashMap map = new LinkedHashMap();
        LinkedHashMap map1 = new LinkedHashMap();
        map1.put("expirytime", 1944298598);

        map.put("code", 200);
        map.put("message", "操作成功");
        map.put("data", "bkWkF23ow/apMzCkQE6ayxqL0AGN1+gvSTaicUIZfXsWwPVBRSRoCwGIjT3EHgOtFkl8gVxfLxeAnynv0CphWyamIjh+U5d+kc/Ur+r57JM5v7qY/BthJLQD2PbiXuJqcwA9uk3WTYXYvM/TsoqEhufBJLnJ0IKBHVl+sS9sLm8LTm1gL+ub/KTRHvWD0HsjM3mosXsg9lZRrqw9J04VzuB2rbDm8MdJ4mkk3QFBnYV/RTVUGqXno1ELfH5XdQ6yh8py0RusntiTirp1e3NNHrhv80my0xhm9ol5qLdMy9b1ylU+FQsvMHgFSSWxHsyNK/07rssJKKXliZTawCjJ/Q==");

        log.info("保护生态登录成功！");
        return JSON.toJSONString(map);
    }

    @RequestMapping(value = "/v1/login1")
    public String login1() {
        LinkedHashMap map = new LinkedHashMap();
        LinkedHashMap map1 = new LinkedHashMap();
        map1.put("expirytime", 1944298598);

        map.put("code", 200);
        map.put("message", "操作成功");
        map.put("data", "");

        log.info("保护生态登录成功！");
        return JSON.toJSONString(map);
    }
}
